package com.huangwenshuo.futurestarschoolmanagement.pojo.dto;

import lombok.Data;

@Data
public class Page {
    private int uid;
    private int page;
    private int row;
    private String sort;
    private String realName;
    private String className;
    private String position;

    public Page(Page page) {
        this.uid = page.getUid();
        this.sort = page.getSort();
        this.page = (page.getPage() - 1) * page.getRow();
        this.row = page.getRow() * page.getPage();
        this.realName = page.getRealName();
        this.className = page.getClassName();
        this.position = page.getPosition();
    }

    public Page() {
    }
}
